module.exports = {
  incomeexpenditureOptions: {
    title: {
      text: '每月收支对比表',
      x: 'left'
    },
    tooltip: {
      trigger: 'axis'
    },
    legend: {
      data: ['收入', '支出']
    },
    color: ['#F4B500', '#7D91FF'],
    grid: {
      left: '3%',
      right: '4%',
      bottom: '3%',
      containLabel: true
    },
    toolbox: {
      feature: {
        saveAsImage: {}
      }
    },
    xAxis: {
      type: 'category',
      boundaryGap: false,
      data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
    },
    yAxis: {
      type: 'value'
    },
    series: [
      {
        name: '收入',
        type: 'line',
        stack: '总量',
        data: [214, 623, 426, 512, 90, 230, 512, 132, 101, 124, 290, 316]
      },
      {
        name: '支出',
        type: 'line',
        stack: '总量',
        data: [120, 310, 652, 211, 390, 215, 210, 132, 211, 134, 190, 124]
      }
    ]
  },


  paymentanalysisOptions: {
    title: {
      text: '付款分析表',
      x: 'left'
    },
    tooltip: {
      trigger: 'item',
      formatter: '{a} <br/>{b} : {c} ({d}%)'
    },
    legend: {
      left: 'center',
      bottom: 10,
      data: ['材料采购合同-石材', '专业分包合同', '分包合同', '其他', '审批支付']
    },
    color: ['#248BFE', '#4DD0E1', '#5FBE67', '#F3CD49', '#DF5667'],
    series: [
      {
        name: '访问来源',
        type: 'pie',
        radius: '76%',
        center: ['50%', '45%'],
        data: [
          { value: 335, name: '材料采购合同-石材' },
          { value: 310, name: '专业分包合同' },
          { value: 234, name: '分包合同' },
          { value: 135, name: '其他' },
          { value: 1548, name: '审批支付' }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
  },
}

